package kr.totalcall.controls
{
	/**
	 * 작업 기록
	 * 2012. 6. 13. / 이규광 / 최초 작성.
	 */
	/**
	 * 내용.
	 * @productversion Flex 4.5
	 * @langversion ActionScript 3.0
	 * @playerversion Flash 10.2
	 * @author 이규광.
	 */
	import flash.ui.ContextMenu;
	import flash.ui.ContextMenuItem;
	
	import spark.components.TextInput;
	
	public class TextInput extends spark.components.TextInput
	{
		
		
		/**
		 * 생성자
		 */
		public function TextInput()
		{
			super();
			copyMenuEnabled = _copyMenuEnabled;
			/*
			var cm:ContextMenuItem =new ContextMenuItem("dddd");
			contextMenu = new ContextMenu();
			contextMenu.customItems = [cm];
			*/
		}
		
		private var _copyMenuEnabled:Boolean = true;
		
		
		public function set copyMenuEnabled(value:Boolean):void{
			_copyMenuEnabled = value;
			if(value){
				TextInputCopyController.controller.addTextInputCopyMenu(this);
			}else{
				TextInputCopyController.controller.removeTextInputCopyMenu(this);
			}
		}
		
		public function get copyMenuEnabled():Boolean{
			return _copyMenuEnabled;
		}
		
		
	}
}